package com.sl.crawler.common.enums.crawler;

/**
 * Created by shiling on 2017/6/16.
 */
public enum EmProcessState {
    STOP(0, "处理完成"),
    RUNNING(1, "处理中"),;

    private final int value;
    private final String title;

    private EmProcessState(int value, String title) {
        this.value = value;
        this.title = title;
    }

    public int getValue() {
        return value;
    }


    public String getTitle() {
        return this.title;
    }

    public static EmProcessState of(final int value) {
        for (EmProcessState rpt : EmProcessState.values()) {
            if (rpt.value == value) {
                return rpt;
            }
        }
        return null;
    }
}

